package com.vortex.cloud.zhsw.xinyang.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.liaochong.myexcel.core.annotation.ExcelColumn;
import com.vortex.cloud.vfs.lite.base.dto.AbstractBaseTenantDTO;
import com.vortex.cloud.vfs.lite.base.dto.GeometryDTO;
import com.vortex.cloud.zhsw.xinyang.annotation.ImportAttachField;
import com.vortex.cloud.zhsw.xinyang.dto.DictDataDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * @author zhanglei
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class TaskVO extends AbstractBaseTenantDTO {
    @Schema(description = "名称'")
    private String name;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Schema(description = "日期'")
    private LocalDate taskDate;
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "时间'")
    private LocalTime taskTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "年月日时分秒'")
    private LocalDateTime taskDateTime;

    @Schema(description = "类型'")
    private DictDataDTO typeCode;
    @Schema(description = "组织机构'")
    private DictDataDTO deptOrgId;
    @Schema(description = "行政区划'")
    private DictDataDTO divisionId;
    @Schema(description = "用户'")
    private DictDataDTO userId;
    @Schema(description = "人员'")
    private DictDataDTO staffId;
    @Schema(description = "附件'")
    @ExcelColumn(title = "附件")
    @ImportAttachField
    private String attachs;
    @Schema(description = "位置'")
    private GeometryDTO location;
}
